package com.example.config;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class SentinelConfigInitializer {

    @PostConstruct
    public void init() {
        System.setProperty("csp.sentinel.log.dir", "logs/sentinel");
        System.setProperty("csp.sentinel.log.use.pid", "false");
        System.setProperty("csp.sentinel.log.charset", "utf-8");
    }
}
